﻿using System.Threading.Tasks;
using AbpOne.Application.Contracts.Blog;
using AbpOne.ToolKits.Base;

namespace AbpOne.Application.Blog {
    /// <summary>
    /// 博客接口服务类
    /// </summary>
    public interface IBlogService {
        Task<ServiceResult<string>> InsertPostAsync(PostDto dto);

        Task<ServiceResult> DeletePostAsync(int id);

        Task<ServiceResult<string>> UpdatePostAsync(int id, PostDto dto);

        Task<ServiceResult<PostDto>> GetPostAsync(int id);
    }
}